import { request } from '@/utils'
// 商品类型接口(API)
export default {

  toggleRole: data => request.post('/auth/role/toggle', data),
  categoryAddApi: data => request.post('/basic-api/commodity/category/add', data),
  categoryListApi: params => request.get('/basic-api/commodity/category/list', { params }),
  typeOptionApi: params => request.get('/basic-api/commodity/category/typeOption', { params }),
  categoryDeleteApi: data => request.post('/basic-api/commodity/category/delete', data),
  categoryEditApi: data => request.post('/basic-api/commodity/category/edit', data),
  typeSetDataApi: data => request.post('/basic-api/commodity/category/typeSetData', data),

}
